package Data;

import GUI.*;

public class Line {
	public static final int IS_A = 0;
	public static final int HAS_A = 1;
	
	int type;
	ClassFrame head, tail;
	
	public Line(ClassFrame h, ClassFrame t, int _type) throws Exception {
		if (h == null || t == null) throw new Exception("Null ClassFrame");
		head = h;
		tail = t;
		type = _type;
	}
	
	public ClassFrame getHead() {
		return head;
	}
	
	public ClassFrame getTail() {
		return tail;
	}
	
	public int getType() {
		return type;
	}
}
